<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hãng laptop</title>

<link href="../style/cssqt.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
include("../config/config.php");
$lenh = "select Mahanglaptop, Tenhanglaptop, Diachi, Dienthoai, Email from hanglaptop";
$kq = mysql_query($lenh);

?>
<table width="1110" border="1" align="center" cellpadding="0" cellspacing="0" class="table_khachhang">
  <tr>
    <td height="30" colspan="7" align="center" class="title_table">Hãng Laptop</td>
  </tr>
  <tr>
    <td height="30" align="center">STT</td>
    <td height="30" align="center">Mã hãng</td>
    <td height="30" align="center">Tên hãng</td>
    <td height="30" align="center">Địa chỉ</td>
    <td height="30" align="center">Điện thoại</td>
    <td height="30" align="center">Email</td>
    <td height="30" align="center">Xóa</td>
  </tr>
  <?php
  $stt = 1;
  while($row = mysql_fetch_array($kq))
  {
	  ?>
  <tr>
    <td height="30" align="center"><?php echo $stt; ?></td>
    <td height="30" align="center"><?php echo $row[0]; ?></td>
    <td height="30"><?php echo  $row[1] ?></td>
    <td height="30"><?php echo $row[2] ?></td>
    <td height="30" align="center"><?php echo $row[3] ?></td>
    <td height="30"><?php echo $row[4] ?></td>
    <td align="center"><a href="xoahanglaptop.php?idxoahang=<?php echo $row[0]; ?>">Xóa</a></td>
  
   
  </tr>
  <?php
   $stt++;
  } 
  ?>
</table>
</body>
</html>